package com.tuling.base;


import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Animal{
        public static void main(String[] args) {
            try {
                test();
                System.out.println("condition 1");
            } catch (ArrayIndexOutOfBoundsException e) {
                System.out.println("condition 2");
            } catch (Exception e) {
                System.out.println("condition 3");
            } finally {
                System.out.println("finally");
            }
        }
        public static void test() {
            String str = "cc";
            str.compareTo("abc");

            double aa = 'A'+10+3.13;

            System.out.println(aa);
        }
    }